#pragma once
#include "BattleObject.h"
#include "ConnClient.h"
#include "cocos2d.h"
class Player:public BattleObject
{
public:
	Player(std::string name){
    
		this->client=new ConnClient();
		CCArmature *armature = CCArmature::create("girl");
        this->init(name,10.0f,10.0f,armature,STAND,RIGHT);
	}
	~Player(){
	}
	void connect(const char* url){
		client->connect(url);
	}
	void send(BaseMessage* msg){
		client->sendMessage(msg);
	}
private:
	ConnClient* client;
};

